package cn.training.service;

import jp.terasoluna.fw.dao.QueryDAO;
import jp.terasoluna.fw.dao.UpdateDAO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.training.bean.UserBean;

@Service
public class HelloWorldService {

	@Autowired
	QueryDAO queryDao;

	@Autowired
	UpdateDAO updateDao;

	
	public UserBean searchUser(UserBean frm) {
		UserBean result = queryDao.executeForObject("User.selectUser", frm, UserBean.class);
		//frm.setUserId("test");
		
		return result;
	}
}
